{template header}
<script language="javascript" type="text/javascript" src="js/command.js"></script>
<script language="javascript" type="text/javascript">
J(function(){
	bopuruiObj.product = {
		init: function(){		
			J('#intoShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(J('input[name=productId[]]:checked').length==0){
					alert('请选择产品！');
				}else{
					var productId = '';
					J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					ajaxmenu('/product-detail-{$categoryId}.htm?intoShopping=add&pid='+productId, 0, 0, 0, function(s){J('#cartCount').html(J('#ShopcartCount').find('b').eq(0).html())});
				}
				<!--{/if}-->
			});
			
			J('#ImmediatelyShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(J('input[name=productId[]]:checked').length==0){
					alert('请选择产品！');
				}else{
					var productId = '';
					J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					location.href='/product-detail-{$categoryId}.htm?intoShopping=add&action=now&pid='+productId;
				}
				<!--{/if}-->
			});
			
			J('#selectAll').click(function(){
				if(J(this).attr('checked')==true){
					J('input[name=productId[]]').attr('checked', true)
				}else{
					J('input[name=productId[]]').attr('checked', false)
				}
			});
			
			bopuruiObj.command.mtabletr();
			bopuruiObj.command.selectBoxAll();
		}	
	}
	bopuruiObj.product.init();
});
</script>
<div class="maininfo">

	<div class="lattice x1" style="padding-left: 0;">
		
		{template userlogin}
		
		<!--{template product_left}-->
		
	</div>
	
	<div class="lattice x4" style="padding-right: 0;">
	
		<div class="giftlist">
		
			<h3 class="title_cla4">系列信息</h3>
			
			<div class="giftinfo" style=" padding-left:0px;">
				<div class="hd">
					<div class="pic">
						<a target="_blank" href="{$oneArr[picture]}" title="查看大图">
						<img alt="{$oneArr[cateName]}" src="{$oneArr[picture]}" width="300" /></a>
						<br />
						<a target="_blank" href="{$oneArr[picture]}" title="查看大图">查看大图</a>
					</div>
					<div class="text">
						<div>
							<p class="title_cla4">{$oneArr[cateName]}</p>				
							<p></p>
		
							<p>
								{$oneArr[content]}
							</p>
						</div>
					</div>
				</div>
				
				<div class="bd">
					<h3 class="title_cla2"><span>系列产品</span></h3>
					<!--<div class="">{$oneArr[content]}</div>-->
				</div>
				
			</div>
			
		</div>
		
	</div>
	
	<div class="lattice x4" style="padding-right: 0;">

	      <div class="boxcla1">
		      <div class="hd">
		          <div class="r">
			          <div class="m"></div>
				  </div>
			  </div>
  
			  <div class="bd">
				  <div class="t_headcla1">
				    <table width="100%" border="0" cellpadding="0" cellspacing="0">
				      <thead>
				        <tr>
							<td style="width: 8%; padding-left: 5px; text-align:center"><label>全选<input type="checkbox" id="selectAll" value="all" /></label></td>
							<td style="width: 10%; padding-left: 5px; text-align:center">订货号</td>
							<td style="width: 25%; text-align:center; padding-right: 5px;">产品说明</td>
							<td style="width: 12%; text-align:center; padding-right: 5px;">存货类型</td>
							<td style="width: 12%; text-align:center; padding-right: 5px; display:none;">市场价</td>
							<td style="width: 12%; text-align:center; padding-right: 5px;">市场价<span id="ctl00_ContentPlaceHolder1_pricePage"></span></td>
							<td style="width: 12%; text-align: center;">会员价格</td>
							<td style="width: 9%; text-align: center;">&nbsp;</td>
					      </tr>
				        </thead>
				      </table>
				  </div>
			  </div>
  
			  <div class="ft">
				  <div class="r">
				    <div class="m"></div>
				  </div>
			  </div>
		  </div>
  
		  <div class="t_maincla1">
			  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table1">
			    <tbody>
			      <!--{loop $productArr $key $list}-->
			      <tr id="tr_$list[productId]" class="td_b_on">
					<td style="width: 8%; text-align:center; line-height: 15px; color: #333; padding-left: 8px;"><input type="checkbox" name="productId[]" Tags="mark" value="{$list[productId]}" /></td>
					<td style="width: 10%;line-height: 15px; color: #333; padding-left: 8px; text-align:center">$list[productNo]</td>
					<td style="width: 25%; text-align: center; color:#000000;" nowrap="nowrap" class="high">{$list[content]}</td>
					<td style="width: 12%; text-align: center; color:#000000;" nowrap="nowrap" class="high">{$list[stockType]}</td>
					<td style="width: 12%; text-align: center; color:#000000; display:none;" nowrap="nowrap" class="high"><span style="text-decoration:line-through;">{$list[martPrice]}</span></td>
					<td style="width: 12%; text-align: center; color:#000000;" nowrap="nowrap" class="high">$list[ourPrice]</td>
					<td style="width: 12%;" align="center">$list[userPrice]</td>
					<td style="width: 9%;" align="center"><a href="favorite-add-{$list[productId]}.htm" onclick="ajaxmenu(this.href, 0)">收藏</a></td>
				    </tr>
			      <!--{/loop}-->
			      </tbody>
		      </table>
		  </div>
  		
		<!--{if $numCount>0}-->
		  <div class="t_nav">
			  
  
				<div class="button_1_cla1">
					<div class="button_r_cla1">
						<div class="button_m_cla1">
							<span class="button_shop"><input id="ImmediatelyShopping" type="submit" class="submit" value="立刻购买" /></span>
						</div>
					</div>
				</div>

				<div class="button_1_cla2">
					<div class="button_r_cla2">
						<div class="button_m_cla2">
							<a id="intoShopping" href="#1">加入购物车</a>
						</div>
					</div>
				</div>
		  </div>
		  <div class="t_nav">
		  	<div class="bd" style="overflow:hidden;">
				<div class="pages">
					<div class="scott" style="text-align: center;">
					
						<div id="ctl00_ContentPlaceHolder1_mypager">
						<!--{$multipage}-->
						</div>
											
					</div>
					
				</div>
			</div>
		  </div>
		<!--{/if}-->
		
  </div>
</div>
{template footer}